package com.xh.bussiness.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xh.bussiness.system.bean.request.ExportLogRequest;
import com.xh.bussiness.system.model.ExportLog;
import com.xh.bussiness.system.dao.ExportLogMapper;
import com.xh.bussiness.system.service.IExportLogService;
import com.xh.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.xh.core.bean.XhPage;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author daiwei
 * @since 2018-09-28
 */
@Service
public class ExportLogServiceImpl extends BaseServiceImpl<ExportLogMapper, ExportLog> implements IExportLogService {
    @Override
    public XhPage queryExportLogPage(XhPage page, ExportLogRequest bean) {
        QueryWrapper qw=new QueryWrapper<ExportLog>();
        //拼装条件
        if(bean.getIds()!=null&&bean.getIds().length>0){
            qw.in("id",bean.getIds());
        }

        return (XhPage) this.dao.selectPage(page,qw);
    }
}
